// pages/test/index.js
Page({

    state: 'paused',
    playIndex: 0,
    play: {
      currentTime: '00:00',
      duration: '03:30',
      percent: 0,
      title: '',
      singer: '',
      coverImgUrl: '/images/cover.jpg',
    },

    // 滚动条调节歌曲进度
    sliderChange: function(e) {
      console.log(e.detail.value)
      var second = e.detail.value * this.audioCtx.duration / 100
      this.audioCtx.seek(second)
    },
  

})